import request from "@/utils/request";

export default class User {
  static register(data) {
    return request({
      url: "/user",
      method: "post",
      data,
    });
  }
  static login(params) {
    return request({
      url: "/user",
      method: "get",
      params,
    });
  }
}
